import java.util.Scanner;

public class text4 {
    public static int IntMax(int a,int b){
        return a>b?a:b;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a= sc.nextInt();
        int b= sc.nextInt();
        int max=IntMax(a,b);
        System.out.println(max);
        int c= sc.nextInt();
        int max2=IntMax(IntMax(a,b),c);
        System.out.println(max2);
        sc.close();
    }
}
